home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Jul 89 / W0071-Re GC Hacks-Jul89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  40 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  BURBECK.S    to MACAPP.TECH$
  2.  
  3. Item    5157929                         14-July-89        13:53
  4.  
  5. From:   KORNHER                         Scarab Research, C Kornher, PRT
  6.  
  7. To:     BURBECK.S                       Burbeck, Steve
  8.  
  9. Sub:    Re GC Hacks
  10.  
  11. Steve,
  12.  
  13. I agree.  The scheme I mentioned does put a burden on the programmer and it can
  14. be broken easily.  It is an inelegant solution and can carry significant size
  15. and execution time penalties for complex networks of objects as well.  I would
  16. like to see the option of true garbage collection in future versions of
  17. OP/MacApp.
  18.  
  19. I was suggesting that if garbage collection caries a significant performance
  20. burden, then a true garbage collected object class could be created and
  21. inherited into whatever objects really needed it, without burdening the rest of
  22. the system with the overhead.  This would, of course, require multiple
  23. inheritance.
  24.  
  25. The difficulty with cloning my object trees really stems from the need to
  26. create "deep clone" ( cloning objects that the cloned object references)
  27. behavior for each object. I am going to show my ignorance and ask: does any
  28. language have automatic deep cloning?  It would be nice to have it in MacApp.
  29. Of course there is the problem of knowing just what to clone.  I do not yet
  30. have an idea of how to make automatic deep cloning work well, but it ought to
  31. be possible.  Any automatic deep cloning scheme that I can envision would
  32. require some programmer input.
  33.  
  34. { NOTE: My AppleLink address has changed }
  35.  
  36. Chris Kornher
  37.  
  38.  
  39.  
  40.